#include<iostream>
#include<cmath>
using namespace std;
void coutip32(char *a) {
	int n=0,k=0;
	for (int i = 0;i <4;++i) {
		for (int j = 7;j >=0;--j,++k) {
			if(a[k]=='1') n+=pow(2,j);
		}
		 cout<<n;
		if(i<3)	cout <<".";
		n=0;
	}
}
int main(){
	char a[33]={"11001010011101010000000000010100"};
	cin>>a;
	coutip32(a);
	return 0;
}
